projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71fe1a5
)
button: Remove unneeded checks
author
Benjamin Otte
<otte@redhat.com>
Wed, 30 Apr 2014 06:38:39 +0000
(08:38 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 1 May 2014 12:51:27 +0000
(14:51 +0200)
Size vfuncs always get non-null out variables passed, so no need to
check for NULL.
gtk/gtkbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkbutton.c
b/gtk/gtkbutton.c
index aff698e3a828014381350f4cd02f96e3b32c29df..c13fd6c076bc1c7b4ce335633cd1f20b4ed45d62 100644
(file)
--- a/
gtk/gtkbutton.c
+++ b/
gtk/gtkbutton.c
@@
-2250,11
+2250,8
@@
gtk_button_get_size (GtkWidget *widget,
natural += child_nat;
}
- if (minimum_size)
- *minimum_size = minimum;
-
- if (natural_size)
- *natural_size = natural;
+ *minimum_size = minimum;
+ *natural_size = natural;
}
static void